home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Booting Gallery / Booting Gallery (source) / Sources / Sprite Sources / LockPixMap.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-22  |  399 b   |  19 lines  |  [TEXT/CWIE]

  1. #include "LockPixMap.h"
  2.  
  3.  
  4. void    LockPixMap(PixMapHandle pm,PixMapState& outState)
  5. {
  6.     outState.pixMapState = HGetState((Handle)pm);
  7.     outState.ctState = HGetState((Handle)pm[0]->pmTable);
  8.     HLock((Handle)pm);
  9.     HLock((Handle)pm[0]->pmTable);
  10. }
  11.  
  12. void    RestorePixMap(PixMapHandle pm,PixMapState& inState)
  13. {
  14.     HSetState((Handle)pm,inState.pixMapState);
  15.     HSetState((Handle)pm[0]->pmTable,inState.ctState);
  16. }
  17.  
  18.  
  19.